package org.example.cake.service;

import org.apache.ibatis.annotations.Param;
import org.example.cake.entity.Orderpayinfo;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface OrderpayinfoService{


    int deleteByPrimaryKey(Integer payid);

    int insert(Orderpayinfo record);

    int insertSelective(Orderpayinfo record);

    Orderpayinfo selectByPrimaryKey(Integer payid);

    int updateByPrimaryKeySelective(Orderpayinfo record);

    int updateByPrimaryKey(Orderpayinfo record);


    Integer saveOrderpayinfo(Orderpayinfo orderpayinfo);

    /**
     * 根据时间查询payid
     * @Date 2025-08-04 谭丽娜
     * @param date
     * @return
     */
    Integer getorderinfo(String date);

    List<Orderpayinfo> selectOrderpayinfo( String ordernum,
                                           String address,
                                           String cakeName);

    int updateRemark(int payid, String remark);

}
